package com.paperless.model;

public class MediaBean {
    @Deprecated
    int iskeyframe;
    int res;
    int codecid;
    int w;
    int h;
    byte[] bytes;
    long pts;
    byte[] codecdata;
    int size;

    public MediaBean(byte[] bytes, int size, long pts, int iskeyframe) {
        this.bytes = bytes;
        this.size = size;
        this.pts = pts;
        this.iskeyframe = iskeyframe;
    }

    public MediaBean(int iskeyframe, int res, int codecid, int w, int h, byte[] bytes, long pts, byte[] codecdata) {
        this.iskeyframe = iskeyframe;
        this.res = res;
        this.codecid = codecid;
        this.w = w;
        this.h = h;
        this.bytes = bytes;
        this.pts = pts;
        this.codecdata = codecdata;
    }

    public int getIskeyframe() {
        return iskeyframe;
    }

    public void setIskeyframe(int iskeyframe) {
        this.iskeyframe = iskeyframe;
    }

    public int getRes() {
        return res;
    }

    public void setRes(int res) {
        this.res = res;
    }

    public int getCodecid() {
        return codecid;
    }

    public void setCodecid(int codecid) {
        this.codecid = codecid;
    }

    public int getW() {
        return w;
    }

    public void setW(int w) {
        this.w = w;
    }

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    public long getPts() {
        return pts;
    }

    public void setPts(long pts) {
        this.pts = pts;
    }

    public byte[] getCodecdata() {
        return codecdata;
    }

    public void setCodecdata(byte[] codecdata) {
        this.codecdata = codecdata;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "MediaBean{" +
                "res=" + res +
                ", iskeyframe=" + iskeyframe +
                ", bytes=" + (bytes != null ? bytes.length : -1) +
                ", codecdata=" + (codecdata != null ? codecdata.length : -1) +
                ", pts=" + pts +
                '}';
    }
}
